package com.skeyedu.user.controller;

import com.skeyedu.user.entity.User;
import com.skeyedu.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*
 * @author jChen
 * @date 2021/12/12 11:31
 * @detail:
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    UserService us;

    @RequestMapping("/{id}")
    public User findUser(@PathVariable int id){
        return us.findUserById(id);
    }



}
